<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    .liked {
      background: deeppink;
    }
  </style>
</head>

<body>
  <div id="app">
    <like></like>
  </div>
  <template id="like-component-tpl">
    <button :class = "{liked:liked}" @click="toggle_like()">
      {{name}} {{like_count}}
    </button>
  </template>
  <!--1、导入Vue的包-->
  <script src="../lib/vue.js"></script>
  <script src="js/main.js"></script>

</body>

</html>
